import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBCommonToast/YBCommonToastPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';


class YBMineJiHuoPage extends StatefulWidget {
  @override
  _YBMineJiHuoPageState createState() => _YBMineJiHuoPageState();
}

class _YBMineJiHuoPageState extends State<YBMineJiHuoPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Scaffold(
        appBar: AppBar(
          elevation: 0,
          title: Text(
            '激活公会卡', style: YBTextStyle.TextStyle30313320Medium
          ),
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              Container(
                child: Padding(
                  padding: EdgeInsets.only(left: 20,right: 20,top: 100),
                  child: Container(
                    color: YBColor.white,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.stretch,
                      children: [
                        Container(
                          height: 15,
                        ),
                        Container(
                          alignment: Alignment.center,
                          child: Text('·激活公会权益卡·',style: YBTextStyle.TextStyle18181820Medium,),
                        ),
                        Container(
                          height: 15,
                        ),
                        Container(
                          child: Padding(
                            padding: EdgeInsets.only(left: 20,right: 20,),
                            child: TextField(
                              decoration: InputDecoration(
                                hintText:'请输入公会权益卡激活码',
                                fillColor: YBColor.colorF5F5F7,
                                filled: true,
                                border: InputBorder.none,
                              ),
                            ),
                          ),
                        ),
                        Container(
                          height: 15,
                        ),
                        Container(
                          height: 44,
                          child: Padding(
                            padding: EdgeInsets.only(left: 20,right: 20),
                            child: RawMaterialButton(
                                fillColor: YBColor.commonThemeColor,
                                child: Text('立即激活',style: YBTextStyle.TextStyleFFFFFF16Medium,),
                                shape: RoundedRectangleBorder(
                                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                                ),
                                onPressed:() async {
                                   YBToast.showToastInfo('');
                                }
                            ),
                          ),
                        ),
                        Container(
                          height: 15,
                        ),
                      ],
                    ),
                  ),
                ),
              ),
              Container(
                alignment: Alignment.centerLeft,
                child: Padding(
                  padding:EdgeInsets.only(left: 20,right: 20,top: 90),
                  child: Text('什么是激活码?',style: YBTextStyle.TextStyle18181816Medium,),
                ),
              ),
              Container(
                child: Padding(
                  padding:EdgeInsets.only(left: 20,right: 20,top: 20),
                  child: Text('1、激活码是公会权益的激活秘钥，每张公会权益卡对应的激活码唯一，刮开公会权益卡背面涂层可见。',style: YBTextStyle.TextStyle18181811,),
                ),
              ),
              Container(
                child: Padding(
                  padding:EdgeInsets.only(left: 20,right: 20,top:10),
                  child: Text('2、输入激活码，即可开启办买省钱、办事省心的绿色通道。',style: YBTextStyle.TextStyle18181811,),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
